package com.kgc.springboot.aviation.service.zzy;

import com.github.pagehelper.PageInfo;
import com.kgc.springboot.aviation.pojo.Collection;
import com.kgc.springboot.aviation.pojo.Directory;
import com.kgc.springboot.aviation.pojo.User;

import java.util.List;


public interface AllService {


    PageInfo<Directory> selectAll(Integer pageNum, Integer pageSize, Integer id);

    //法规查询
    List<Directory> getSelect(Integer lawsId);

    //添加目录
    int add(Directory directory);

    //遍历所有管理员
    PageInfo<User> selectAllUser(Integer pageNum, Integer pageSize, String userUname, String userPhone);

    //通过id查询所有
    Directory upGetAll(Integer id);

    //修改
    int upDate(Directory directory);

    //添加收藏
    int addCollection(Collection collection);

    //浏览页面删除收藏
    int deleteConllection(Integer userId, Integer clauseId);

    //我的收藏页面根据id删除收藏
    int delConllection(Integer userId, Integer id);

    //遍历我的收藏
    PageInfo<Collection> selectCollection(Integer pageNum, Integer pageSize, Integer userId);

    //通过法规id查询目录
    Directory getId(Integer lawsId);
}
